<template>
    <div class="practise_items" @click="toPractise">
      <span>练习{{index +1}}</span>
      <span>{{test.myQuestions[0].tag_Name}}</span>
    </div>
</template>

<script>
  export default {
    name: 'List_practise',
    props: [
      'test', 'index'
    ],
    mounted () {
      // console.log(this.test)
    },
    methods: {
      toPractise () {
        wx.reLaunch({url: '../exercise/main?eindex=' + this.index})
      }
    }
  }
</script>

<style scoped>
    .practise_items{
        display: flex;
        padding: 50rpx;
        background-color: #eea9bb;
        border-radius: 20rpx;
        margin: 10rpx
    }

    .practise_items span{
        margin-right: 30rpx;
        font-size: 24rpx;
        color: #ffffff;
    }
</style>
